{template header}

    {template sidebar}

    <!-- artile begin -->
    <div class="article">

        {template title}

        <table>
        <!--{if $type == 'db' || $type == 'system'}-->
            <tr>
                <th width="5%"><input type="checkbox" class="checkbox all" /></th>
                <th>错误信息</th>
                <th width="20%">时间</th>
            </tr>
        <!--{else}-->
            <tr>
                <th width="5%"><input type="checkbox" class="checkbox all" /></th>
                <th width="20%">用户</th>
                <th width="20%">IP</th>
                <th>内容</th>
                <th width="20%">时间</th>
            </tr>
        <!--{/if}-->

        <!--{if $log_data}-->
            <!--{loop $log_data $k $v}-->
            <tr>
            <!--{if $type == 'db' || $type == 'system'}-->
                <td><input type="checkbox" name="id" value="{$k}" class="checkbox" /></td>
                <td>{$v[0]}</td>
                <td>{echo formatDate($v[1])}</td>
            <!--{else}-->
                <td><input type="checkbox" name="id" value="{$k}" class="checkbox" /></td>
                <td>{$v[0]}</td>
                <td>{$v[1]}</td>
                <td>{$v[2]}</td>
                <td>{echo formatDate($v[3])}</td>
            <!--{/if}-->
            </tr>
            <!--{/loop}-->
            <tr>
                <td class="over">
                    <input type="checkbox" class="checkbox all" />
                </td>
                <td colspan="{$type == 'db' || $type == 'system' ? 2 : 4}" class="operate multiple td2 over">
                    <a href="{$this->url($c, 'del', array( 'type' => $type ))}">删除日志</a>
                </td>
            </tr>
        <!--{/if}-->

        </table>
    </div>
    <!-- artile end -->
{template footer}